/**
 * @Description TODO
 * @Author hhy
 * @Date 2020/9/23 10:59
 */
public abstract class Animal {
    private String name;
    private String type;

    public Animal() {
    }

    public Animal(String name, String type) {
        this.name = name;
        this.type = type;
    }

    //动物吃东西的方法
    public abstract void eat();

    //动物玩的方法
    public abstract void play();

    //动物的声音
    public abstract void say();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
